﻿namespace MVCResourceEngine
{
    using System.Web.Routing;

    /// <summary>
    /// Defines the methods that are required for a resource engine.
    /// </summary>
    public interface IResourceEngine
    {
        /// <summary>
        /// Finds the resource.
        /// </summary>
        /// <param name="requestContext">The request context.</param>
        /// <param name="resourceName">Name of the resource.</param>
        /// <param name="useCache">true to specify that the resource engine returns the cached resource, if a cached resource exists; otherwise, false</param>
        /// <returns>The resource engine result</returns>
        ResourceEngineResult FindResource(RequestContext requestContext, string resourceName, bool useCache);
    }
}
